home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWNotifn / Sources / FWIntere.cpp < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.8 KB  |  95 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWIntere.cpp
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    (c) 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFound.hpp"
  11.  
  12. #ifndef FWINTERE_H
  13. #include "FWIntere.h"
  14. #endif
  15.  
  16. #ifndef FWNOTIFR_H
  17. #include "FWNotifr.h"
  18. #endif
  19.  
  20. #if FW_LIB_EXPORT_PRAGMAS
  21. #pragma lib_export on
  22. #endif
  23.  
  24. //========================================================================================
  25. // CLASS FW_CInterest
  26. //========================================================================================
  27.  
  28. //----------------------------------------------------------------------------------------
  29. // FW_CInterest::FW_CInterest
  30. //----------------------------------------------------------------------------------------
  31.  
  32. FW_CInterest::FW_CInterest() :
  33.     fNotifier(NULL),
  34.     fName(0)
  35. {
  36. }
  37.  
  38. //----------------------------------------------------------------------------------------
  39. // FW_CInterest::FW_CInterest
  40. //----------------------------------------------------------------------------------------
  41.  
  42. FW_CInterest::FW_CInterest(FW_MNotifier* notifier, const FW_TypeToken& name) :
  43.     fNotifier(notifier),
  44.     fName(name)
  45. {
  46. }
  47.  
  48. //----------------------------------------------------------------------------------------
  49. // FW_CInterest::FW_CInterest
  50. //----------------------------------------------------------------------------------------
  51.  
  52. FW_CInterest::FW_CInterest(const FW_CInterest& other) :
  53.     fNotifier(other.fNotifier),
  54.     fName(other.fName)
  55. {
  56. }
  57.  
  58. //----------------------------------------------------------------------------------------
  59. // FW_CInterest::~FW_CInterest
  60. //----------------------------------------------------------------------------------------
  61.  
  62. FW_CInterest::~FW_CInterest()
  63. {
  64. }
  65.  
  66. //----------------------------------------------------------------------------------------
  67. // FW_CInterest::operator=
  68. //----------------------------------------------------------------------------------------
  69.     
  70. FW_CInterest& FW_CInterest::operator=(const FW_CInterest& other)
  71. {
  72.     fNotifier = other.fNotifier;
  73.     fName = other.fName;
  74.     
  75.     return *this;
  76. }
  77.  
  78. //----------------------------------------------------------------------------------------
  79. // FW_CInterest::operator==
  80. //----------------------------------------------------------------------------------------
  81.  
  82. FW_Boolean FW_CInterest::operator==(const FW_CInterest& other) const
  83. {
  84.     return fNotifier == other.fNotifier && fName == other.fName;
  85. }
  86.  
  87. //----------------------------------------------------------------------------------------
  88. // FW_CInterest::Copy
  89. //----------------------------------------------------------------------------------------
  90.  
  91. FW_CInterest* FW_CInterest::Copy() const
  92. {
  93.     return new FW_CInterest(*this);
  94. }
  95.